package com.kantboot.business.ac.service.impl;

import com.kantboot.business.ac.domain.dto.BusAcRechargeProductOfSearchDTO;
import com.kantboot.business.ac.domain.entity.BusAcRechargeProductPhone;
import com.kantboot.business.ac.repository.BusAcRechargeProductPhoneRepository;
import com.kantboot.business.ac.service.IBusAcRechargeProductPhoneService;
import com.kantboot.util.core.param.PageParam;
import com.kantboot.util.core.result.PageResult;
import jakarta.annotation.Resource;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

@Service
public class BusAcRechargeProductPhoneServiceImpl implements IBusAcRechargeProductPhoneService {

    @Resource
    private BusAcRechargeProductPhoneRepository repository;

    @Override
    public PageResult getBodyData(PageParam<BusAcRechargeProductOfSearchDTO> pageParam) {
        Page<BusAcRechargeProductPhone> bodyData = repository.getBodyData(pageParam.getData(), pageParam.getPageable());
        return PageResult.of(bodyData);
    }
}
